package com.macro.mall.model;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class PmsSkuPriceLogExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public PmsSkuPriceLogExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andHandelUserNameIsNull() {
            addCriterion("handel_user_name is null");
            return (Criteria) this;
        }

        public Criteria andHandelUserNameIsNotNull() {
            addCriterion("handel_user_name is not null");
            return (Criteria) this;
        }

        public Criteria andHandelUserNameEqualTo(String value) {
            addCriterion("handel_user_name =", value, "handelUserName");
            return (Criteria) this;
        }

        public Criteria andHandelUserNameNotEqualTo(String value) {
            addCriterion("handel_user_name <>", value, "handelUserName");
            return (Criteria) this;
        }

        public Criteria andHandelUserNameGreaterThan(String value) {
            addCriterion("handel_user_name >", value, "handelUserName");
            return (Criteria) this;
        }

        public Criteria andHandelUserNameGreaterThanOrEqualTo(String value) {
            addCriterion("handel_user_name >=", value, "handelUserName");
            return (Criteria) this;
        }

        public Criteria andHandelUserNameLessThan(String value) {
            addCriterion("handel_user_name <", value, "handelUserName");
            return (Criteria) this;
        }

        public Criteria andHandelUserNameLessThanOrEqualTo(String value) {
            addCriterion("handel_user_name <=", value, "handelUserName");
            return (Criteria) this;
        }

        public Criteria andHandelUserNameLike(String value) {
            addCriterion("handel_user_name like", value, "handelUserName");
            return (Criteria) this;
        }

        public Criteria andHandelUserNameNotLike(String value) {
            addCriterion("handel_user_name not like", value, "handelUserName");
            return (Criteria) this;
        }

        public Criteria andHandelUserNameIn(List<String> values) {
            addCriterion("handel_user_name in", values, "handelUserName");
            return (Criteria) this;
        }

        public Criteria andHandelUserNameNotIn(List<String> values) {
            addCriterion("handel_user_name not in", values, "handelUserName");
            return (Criteria) this;
        }

        public Criteria andHandelUserNameBetween(String value1, String value2) {
            addCriterion("handel_user_name between", value1, value2, "handelUserName");
            return (Criteria) this;
        }

        public Criteria andHandelUserNameNotBetween(String value1, String value2) {
            addCriterion("handel_user_name not between", value1, value2, "handelUserName");
            return (Criteria) this;
        }

        public Criteria andHandelUserIdIsNull() {
            addCriterion("handel_user_id is null");
            return (Criteria) this;
        }

        public Criteria andHandelUserIdIsNotNull() {
            addCriterion("handel_user_id is not null");
            return (Criteria) this;
        }

        public Criteria andHandelUserIdEqualTo(Long value) {
            addCriterion("handel_user_id =", value, "handelUserId");
            return (Criteria) this;
        }

        public Criteria andHandelUserIdNotEqualTo(Long value) {
            addCriterion("handel_user_id <>", value, "handelUserId");
            return (Criteria) this;
        }

        public Criteria andHandelUserIdGreaterThan(Long value) {
            addCriterion("handel_user_id >", value, "handelUserId");
            return (Criteria) this;
        }

        public Criteria andHandelUserIdGreaterThanOrEqualTo(Long value) {
            addCriterion("handel_user_id >=", value, "handelUserId");
            return (Criteria) this;
        }

        public Criteria andHandelUserIdLessThan(Long value) {
            addCriterion("handel_user_id <", value, "handelUserId");
            return (Criteria) this;
        }

        public Criteria andHandelUserIdLessThanOrEqualTo(Long value) {
            addCriterion("handel_user_id <=", value, "handelUserId");
            return (Criteria) this;
        }

        public Criteria andHandelUserIdIn(List<Long> values) {
            addCriterion("handel_user_id in", values, "handelUserId");
            return (Criteria) this;
        }

        public Criteria andHandelUserIdNotIn(List<Long> values) {
            addCriterion("handel_user_id not in", values, "handelUserId");
            return (Criteria) this;
        }

        public Criteria andHandelUserIdBetween(Long value1, Long value2) {
            addCriterion("handel_user_id between", value1, value2, "handelUserId");
            return (Criteria) this;
        }

        public Criteria andHandelUserIdNotBetween(Long value1, Long value2) {
            addCriterion("handel_user_id not between", value1, value2, "handelUserId");
            return (Criteria) this;
        }

        public Criteria andCurrentPriceIsNull() {
            addCriterion("current_price is null");
            return (Criteria) this;
        }

        public Criteria andCurrentPriceIsNotNull() {
            addCriterion("current_price is not null");
            return (Criteria) this;
        }

        public Criteria andCurrentPriceEqualTo(BigDecimal value) {
            addCriterion("current_price =", value, "currentPrice");
            return (Criteria) this;
        }

        public Criteria andCurrentPriceNotEqualTo(BigDecimal value) {
            addCriterion("current_price <>", value, "currentPrice");
            return (Criteria) this;
        }

        public Criteria andCurrentPriceGreaterThan(BigDecimal value) {
            addCriterion("current_price >", value, "currentPrice");
            return (Criteria) this;
        }

        public Criteria andCurrentPriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("current_price >=", value, "currentPrice");
            return (Criteria) this;
        }

        public Criteria andCurrentPriceLessThan(BigDecimal value) {
            addCriterion("current_price <", value, "currentPrice");
            return (Criteria) this;
        }

        public Criteria andCurrentPriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("current_price <=", value, "currentPrice");
            return (Criteria) this;
        }

        public Criteria andCurrentPriceIn(List<BigDecimal> values) {
            addCriterion("current_price in", values, "currentPrice");
            return (Criteria) this;
        }

        public Criteria andCurrentPriceNotIn(List<BigDecimal> values) {
            addCriterion("current_price not in", values, "currentPrice");
            return (Criteria) this;
        }

        public Criteria andCurrentPriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("current_price between", value1, value2, "currentPrice");
            return (Criteria) this;
        }

        public Criteria andCurrentPriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("current_price not between", value1, value2, "currentPrice");
            return (Criteria) this;
        }

        public Criteria andCurrentMemberPriceIsNull() {
            addCriterion("current_member_price is null");
            return (Criteria) this;
        }

        public Criteria andCurrentMemberPriceIsNotNull() {
            addCriterion("current_member_price is not null");
            return (Criteria) this;
        }

        public Criteria andCurrentMemberPriceEqualTo(BigDecimal value) {
            addCriterion("current_member_price =", value, "currentMemberPrice");
            return (Criteria) this;
        }

        public Criteria andCurrentMemberPriceNotEqualTo(BigDecimal value) {
            addCriterion("current_member_price <>", value, "currentMemberPrice");
            return (Criteria) this;
        }

        public Criteria andCurrentMemberPriceGreaterThan(BigDecimal value) {
            addCriterion("current_member_price >", value, "currentMemberPrice");
            return (Criteria) this;
        }

        public Criteria andCurrentMemberPriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("current_member_price >=", value, "currentMemberPrice");
            return (Criteria) this;
        }

        public Criteria andCurrentMemberPriceLessThan(BigDecimal value) {
            addCriterion("current_member_price <", value, "currentMemberPrice");
            return (Criteria) this;
        }

        public Criteria andCurrentMemberPriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("current_member_price <=", value, "currentMemberPrice");
            return (Criteria) this;
        }

        public Criteria andCurrentMemberPriceIn(List<BigDecimal> values) {
            addCriterion("current_member_price in", values, "currentMemberPrice");
            return (Criteria) this;
        }

        public Criteria andCurrentMemberPriceNotIn(List<BigDecimal> values) {
            addCriterion("current_member_price not in", values, "currentMemberPrice");
            return (Criteria) this;
        }

        public Criteria andCurrentMemberPriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("current_member_price between", value1, value2, "currentMemberPrice");
            return (Criteria) this;
        }

        public Criteria andCurrentMemberPriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("current_member_price not between", value1, value2, "currentMemberPrice");
            return (Criteria) this;
        }

        public Criteria andSkuIdIsNull() {
            addCriterion("sku_id is null");
            return (Criteria) this;
        }

        public Criteria andSkuIdIsNotNull() {
            addCriterion("sku_id is not null");
            return (Criteria) this;
        }

        public Criteria andSkuIdEqualTo(Long value) {
            addCriterion("sku_id =", value, "skuId");
            return (Criteria) this;
        }

        public Criteria andSkuIdNotEqualTo(Long value) {
            addCriterion("sku_id <>", value, "skuId");
            return (Criteria) this;
        }

        public Criteria andSkuIdGreaterThan(Long value) {
            addCriterion("sku_id >", value, "skuId");
            return (Criteria) this;
        }

        public Criteria andSkuIdGreaterThanOrEqualTo(Long value) {
            addCriterion("sku_id >=", value, "skuId");
            return (Criteria) this;
        }

        public Criteria andSkuIdLessThan(Long value) {
            addCriterion("sku_id <", value, "skuId");
            return (Criteria) this;
        }

        public Criteria andSkuIdLessThanOrEqualTo(Long value) {
            addCriterion("sku_id <=", value, "skuId");
            return (Criteria) this;
        }

        public Criteria andSkuIdIn(List<Long> values) {
            addCriterion("sku_id in", values, "skuId");
            return (Criteria) this;
        }

        public Criteria andSkuIdNotIn(List<Long> values) {
            addCriterion("sku_id not in", values, "skuId");
            return (Criteria) this;
        }

        public Criteria andSkuIdBetween(Long value1, Long value2) {
            addCriterion("sku_id between", value1, value2, "skuId");
            return (Criteria) this;
        }

        public Criteria andSkuIdNotBetween(Long value1, Long value2) {
            addCriterion("sku_id not between", value1, value2, "skuId");
            return (Criteria) this;
        }

        public Criteria andNoteIsNull() {
            addCriterion("note is null");
            return (Criteria) this;
        }

        public Criteria andNoteIsNotNull() {
            addCriterion("note is not null");
            return (Criteria) this;
        }

        public Criteria andNoteEqualTo(String value) {
            addCriterion("note =", value, "note");
            return (Criteria) this;
        }

        public Criteria andNoteNotEqualTo(String value) {
            addCriterion("note <>", value, "note");
            return (Criteria) this;
        }

        public Criteria andNoteGreaterThan(String value) {
            addCriterion("note >", value, "note");
            return (Criteria) this;
        }

        public Criteria andNoteGreaterThanOrEqualTo(String value) {
            addCriterion("note >=", value, "note");
            return (Criteria) this;
        }

        public Criteria andNoteLessThan(String value) {
            addCriterion("note <", value, "note");
            return (Criteria) this;
        }

        public Criteria andNoteLessThanOrEqualTo(String value) {
            addCriterion("note <=", value, "note");
            return (Criteria) this;
        }

        public Criteria andNoteLike(String value) {
            addCriterion("note like", value, "note");
            return (Criteria) this;
        }

        public Criteria andNoteNotLike(String value) {
            addCriterion("note not like", value, "note");
            return (Criteria) this;
        }

        public Criteria andNoteIn(List<String> values) {
            addCriterion("note in", values, "note");
            return (Criteria) this;
        }

        public Criteria andNoteNotIn(List<String> values) {
            addCriterion("note not in", values, "note");
            return (Criteria) this;
        }

        public Criteria andNoteBetween(String value1, String value2) {
            addCriterion("note between", value1, value2, "note");
            return (Criteria) this;
        }

        public Criteria andNoteNotBetween(String value1, String value2) {
            addCriterion("note not between", value1, value2, "note");
            return (Criteria) this;
        }

        public Criteria andAddTimeIsNull() {
            addCriterion("add_time is null");
            return (Criteria) this;
        }

        public Criteria andAddTimeIsNotNull() {
            addCriterion("add_time is not null");
            return (Criteria) this;
        }

        public Criteria andAddTimeEqualTo(Date value) {
            addCriterion("add_time =", value, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeNotEqualTo(Date value) {
            addCriterion("add_time <>", value, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeGreaterThan(Date value) {
            addCriterion("add_time >", value, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("add_time >=", value, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeLessThan(Date value) {
            addCriterion("add_time <", value, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeLessThanOrEqualTo(Date value) {
            addCriterion("add_time <=", value, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeIn(List<Date> values) {
            addCriterion("add_time in", values, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeNotIn(List<Date> values) {
            addCriterion("add_time not in", values, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeBetween(Date value1, Date value2) {
            addCriterion("add_time between", value1, value2, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeNotBetween(Date value1, Date value2) {
            addCriterion("add_time not between", value1, value2, "addTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}